﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Swproject
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            float i = 0;
            account acc1 = new account();
            // check if the value is a numeric value or not
            if (!(float.TryParse(textBox1.Text, out i)))
            {
                MessageBox.Show("The Given Value Must Be A Numeric Value");

            }
            else
            {
                account ac1 = new account();
                ac1.deposit(float.Parse(textBox1.Text));

                // result =num  - acc1.WithDraw(float.Parse(textBox1.Text));
            }
        }
    }
}
